cmake_minimum_required(VERSION 3.10)


project(rpc_server)

set(SRCS rpc_main.cpp
    rpc_server.cpp
    rpc_service.cpp
)

include_directories(../)

find_library(LIBS nanomsg HINTS ${PROJECT_SOURCE_DIR}/../lib)

add_executable(rpc_server ${SRCS})

target_link_libraries(rpc_server ${LIBS})

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../bin)